<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <title><?php echo $title ?></title>
        <?php foreach ($styles as $file => $type) echo HTML::style($file, array('media' => $type)), PHP_EOL ?>
        <?php foreach ($scripts as $file) echo HTML::script($file), PHP_EOL ?>
    </head>
    <body>
        <div id="login_wraper">
            
            <div id="heading">
                
            </div>
            
            <div id="login_place">
                <h1>Logowanie</h1>
            <?php //wyświetlanie komunikatów, które przekazaliśmy w kontrolerze
                if(isset($sukces)){
                    echo '<h2 style="color:green;">'.$sukces.'</h2>'."\n";
                }elseif(isset($fail)){
                    echo '<h2 style="color:red;">'.$fail.'</h2>'."\n";
                }
            ?>
            <?php
                echo Form::open('user/login')."\n";
            ?>
                <table width="600" border="0" cellpadding="3">
            <?php
                echo '<tr><td>Login:</td><td>'.Form::input('login').'</td></tr>'."\n";
                echo '<tr><td>Hasło:</td><td>'.Form::input('haslo',null,array('type'=>'password',)).'</td></tr>'."\n";
                echo '<tr><td></td><td>'.Form::submit('zaloguj', 'Zaloguj').'</td></tr>'."\n";
            ?>
                </table>
            <?php
                echo Form::close()."\n";
            ?>
            </div>
        </div>
    </body>
</html>







